//
//  CustomNSView.m
//  MacDevTest
//
//  Created by 夏利兵 on 2020/8/5.
//  Copyright © 2020 com.lbx. All rights reserved.
//

#import "CustomNSView.h"

@implementation CustomNSView

- (void)drawRect:(NSRect)dirtyRect {
    [super drawRect:dirtyRect];
    
    if (_onDrawRect) {
        _onDrawRect(dirtyRect);
    }
}

- (BOOL)isFlipped
{
    //左手坐标系，和iOS中的UIView一致,单独View不起作用，在NSViewController中的View设置这个View后，当前NSViewController都是左手坐标系了
    return YES;
}

@end
